package com.ymatou.smsproxy.api.service;

import com.ymt.base.YmatouBaseCall;
import com.ymttest.utils.EnvSetup;

/**
 * 发送短信验证码接口Call FreeMaker Template自动生成代码
 */
public class SendSmsVerifyCodeCall extends YmatouBaseCall {
	private static String opurl = "api/Message/SendSmsVerifyCode";

	public SendSmsVerifyCodeCall() {
		super(EnvSetup.getSystemUrl("new_api_smsproxy"), opurl, "GET", "PARAM");
	}

	@Override
	public void addDefHeader() {
		client.addHeader("Accept", "text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
	
	/**
	 * 获取Message
	 * 
	 * @return
	 */
	public String getMessage() {
		return getString("Message");
	}
}